<!DOCTYPE html>
<html>
    <head>
        <title>My HTML page</title>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    </head>
    <body>
        <div class="container">
            <h1>My table</h1>
            {{ table|safe }}
        </div>
    </body>
</html>